package ui.model;

import java.util.List;

import util.StringUtils;

public class ProfitBean extends BaseBean {

    /**
     * totalAmount : 82.6847
     * dividedIncome : 700.24
     * activeReward : 854
     * activeMerchant : 168
     * backTotal : [{"merchantNo":"1234567895656","backReward":408,"transDate":"2018-11-13 09:07:48"},{"merchantNo":"1234567895656","backReward":408,"transDate":"2018-11-13 09:07:48"}]
     * incomeList : [{"divitedType":"推广奖励","type":"EPOS","amount":12345.56,"merchantNo":"1234567895656","income":123654,"transDate":"2018-11-13 09:07:48"},{"divitedType":"拓展奖励","type":"EPOS","amount":12345.56,"merchantNo":"1234567895656","income":123654,"transDate":"2018-11-13 09:07:48"}]
     */

    private String totalAmount;
    private String dividedIncome;
    private String activeReward;
    private String activeMerchant;
    private List<BackTotalBean> backTotal;
    private List<IncomeListBean> incomeList;

    public String getTotalAmount() {
        return StringUtils.isEmpty(totalAmount) ? "0" : totalAmount;
    }

    public void setTotalAmount(String totalAmount) {
        this.totalAmount = totalAmount;
    }

    public String getDividedIncome() {
        return StringUtils.isEmpty(dividedIncome) ? "0" : dividedIncome;
    }

    public void setDividedIncome(String dividedIncome) {
        this.dividedIncome = dividedIncome;
    }

    public String getActiveReward() {
        return StringUtils.isEmpty(activeReward) ? "0" : activeReward;
    }

    public void setActiveReward(String activeReward) {
        this.activeReward = activeReward;
    }

    public String getActiveMerchant() {
        return StringUtils.isEmpty(activeMerchant) ? "0" : activeMerchant;
    }

    public void setActiveMerchant(String activeMerchant) {
        this.activeMerchant = activeMerchant;
    }

    public List<BackTotalBean> getBackTotal() {
        return backTotal;
    }

    public void setBackTotal(List<BackTotalBean> backTotal) {
        this.backTotal = backTotal;
    }

    public List<IncomeListBean> getIncomeList() {
        return incomeList;
    }

    public void setIncomeList(List<IncomeListBean> incomeList) {
        this.incomeList = incomeList;
    }

    public static class BackTotalBean extends BaseBean {
        /**
         * merchantNo : 1234567895656
         * backReward : 408
         * transDate : 2018-11-13 09:07:48
         */

        private String merchantNo;
        private String backReward;
        private String transDate;

        public String getMerchantNo() {
            return returnInfo(merchantNo);
        }

        public void setMerchantNo(String merchantNo) {
            this.merchantNo = merchantNo;
        }

        public String getBackReward() {
            return returnInfo(backReward);
        }

        public void setBackReward(String backReward) {
            this.backReward = backReward;
        }

        public String getTransDate() {
            return returnInfo(transDate);
        }

        public void setTransDate(String transDate) {
            this.transDate = transDate;
        }
    }

    public static class IncomeListBean extends BaseBean {
        /**
         * divitedType : 推广奖励
         * type : EPOS
         * amount : 12345.56
         * merchantNo : 1234567895656
         * income : 123654
         * transDate : 2018-11-13 09:07:48
         */

        private String divitedType;
        private String tradeType;
        private String amount;
        private String merchantNo;
        private String income;
        private String transDate;

        public String getDivitedType() {
            return returnInfo(divitedType);
        }

        public void setDivitedType(String divitedType) {
            this.divitedType = divitedType;
        }

        public String getTradeType() {
            return tradeType;
        }

        public void setTradeType(String tradeType) {
            this.tradeType = tradeType;
        }

        public String getAmount() {
            return returnInfo(amount);
        }

        public void setAmount(String amount) {
            this.amount = amount;
        }

        public String getMerchantNo() {
            return returnInfo(merchantNo);
        }

        public void setMerchantNo(String merchantNo) {
            this.merchantNo = merchantNo;
        }

        public String getIncome() {
            return returnInfo(income);
        }

        public void setIncome(String income) {
            this.income = income;
        }

        public String getTransDate() {
            return returnInfo(transDate);
        }

        public void setTransDate(String transDate) {
            this.transDate = transDate;
        }
    }
}
